package com.cssy.xxkj.logic.dao;

import java.util.List;
import java.util.Map;

import org.springframework.dao.DataAccessException;

import com.cssy.xxkj.logic.entity.LogicWarehouseBatchInItemDO;
import com.plat.exception.SyBaseException;

/**
 * 数据访问对象接口
 * @since 2015-03-03
 */
public interface LogicWarehouseBatchInItemDAO {

    /**
     * 插入数据
     * @param logicWarehouseBatchInItemDO
     * @return 插入数据的主键
     */
    public String insertLogicWarehouseBatchInItemDO(LogicWarehouseBatchInItemDO logicWarehouseBatchInItemDO) throws DataAccessException;

    /**
     * 统计记录数
     * @param logicWarehouseBatchInItemDO
     * @return 查出的记录数
     */
    public Integer countLogicWarehouseBatchInItemDOByExample(LogicWarehouseBatchInItemDO logicWarehouseBatchInItemDO) throws DataAccessException;

    /**
     * 更新记录
     * @param logicWarehouseBatchInItemDO
     * @return 受影响的行数
     */
    public Integer updateLogicWarehouseBatchInItemDO(LogicWarehouseBatchInItemDO logicWarehouseBatchInItemDO) throws DataAccessException;

    /**
     * 获取对象列表
     * @param logicWarehouseBatchInItemDO
     * @return 对象列表
     */
    public List<LogicWarehouseBatchInItemDO> findListByExample(LogicWarehouseBatchInItemDO logicWarehouseBatchInItemDO) throws DataAccessException;

    /**
     * 根据主键获取logicWarehouseBatchInItemDO
     * @param id
     * @return logicWarehouseBatchInItemDO
     */
    public LogicWarehouseBatchInItemDO findLogicWarehouseBatchInItemDOByPrimaryKey(String id) throws DataAccessException;

    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteLogicWarehouseBatchInItemDOByPrimaryKey(String id) throws DataAccessException;

    /**
     * @param parmMap
     * @return
     * @throws SyBaseException
     */
    public List<LogicWarehouseBatchInItemDO> findLogicWarehouseBatchInItemByMap(Map<String, String> parmMap) throws SyBaseException;
    
    /**
     * 删除参数的数据
     * @param parmMap
     * @return
     * @throws SyBaseException
     */
    public Integer deleteLogicWarehouseBatchInItemByMap(Map<String, String> parmMap) throws SyBaseException;
}